*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 100px;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: rgb(0, 0, 0);
    perspective: 20em;
    perspective-origin:10px 100px ;
    position: relative;
}
.cube{
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: animate 1s alternate-reverse infinite;
}
.shadow{
    position: absolute;
    background: #aa1818;
    height: 2em;
    width: 2em;
    transform: rotateX(90deg);
    bottom: -.1em;
    left: 6.9em;
    box-shadow: 0 120px 100px 10px blue,50px 120px 200px 100px 10px blue;
    filter: blur(100px);
}
.top,.bottom,.left,.right,.front,.back{
    height: 2em;
    width: 2em;
    background: rgb(215, 218, 218);
    position: absolute;
    top: 0;
    bottom: 0;
    box-shadow: 0 0 50px 10px #492279 inset,0 0 0 2em #aa1818 inset;
}


.front{
    transform: translateZ(1em);
}
.back{
    transform: translateZ(-1em);
}
.top{
    transform: translateY(-1em) rotateX(90deg);
}
.bottom{
    transform: translateY(1em) rotateX(90deg);
}
.right{
    transform: translateX(1em) rotateY(90deg);
}
.left{
    transform: translateX(-1em) rotateY(90deg);
}




@keyframes animate {
    to{
        transform: rotateY(360deg);
    }
}









